<%@ include file="/WEB-INF/views/taglib.jsp" %>
<c:set var="systemUser" value="${systemUserForm.systemUser}"></c:set>
<div id="forms">
		<form:form id="form" method="post" modelAttribute="systemUserForm" action="saveUser">
			<div class="header">
		  		<h2>Form</h2>
		  		<c:if test="${not empty message}">
					<div id="message" class="${message.type}">${message.text}</div>	
		  		</c:if>
		  		<spring:bind path="*">
		  			<c:if test="${status.error}">
				  		<div id="message" class="error">Form has errors</div>
		  			</c:if>
		  		</spring:bind>
			</div>
		  	<fieldset>
		  		<legend>Personal Info</legend>
		  		<p>
		  		<form:label path="systemUser.userName">
		  			Name 
		 		</form:label><br/>
		 		${systemUser.userName}
				</p>
		 		<p>
		  		<form:label path="systemUser.nric">
		  			NRIC 
		 		</form:label><br/>
		  		${systemUser.nric}
		  		</p>
		  		<p>
		  		<form:label path="systemUser.userType" cssErrorClass="errorSimple">
		  			User Type
		 		</form:label> <br/>
		  		${systemUser.userType} 
		  		</p>
		  	</fieldset>
			<p><button type="submit">Submit</button></p>
		</form:form>
		<script type="text/javascript">
			$(document).ready(function() {
						
			});
		</script>
	</div>